package com.wzy.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author i'sys
 * @TableName student
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Student extends Model {
    /**
     *
     */
    @TableId(value = "user_id", type = IdType.ASSIGN_ID)
    private String userId;

    /**
     *
     */
    @TableField("name")
    private String name;

    /**
     *
     */
    @TableField("age")
    private Integer age;

    /**
     *
     */
    @TableField("hobby")
    private String hobby;
}